package Equipment;
import java.util.ArrayList;

import Items.Gear.Gear;

/**
 * Equipment Class.
 * @author Phil
 *
 */

public class Equipment
{
	private ArrayList<EquipSlot> equipSlots;
	
	/**
	 * Constructor. Initializes the equipSlots arraylist.
	 * @return
	 */
	public Equipment()
	{
		this.equipSlots = new ArrayList<EquipSlot>();
	}
	
	
	/**
	 * Equips item into some slot.
	 * @param whichSlot Which slot to enter this into.
	 * @param whichGear
	 * @return
	 * TODO: Figure this shit out.
	 */
	public boolean equipItem(EquipSlot whichSlot, Gear whichGear)
	{
		if (this.equipSlots.get(whichGear.getEquipSlot()).gearEquipped())
		{
			return false;
		}
		else
		{
			return true;
		}
	}
	
	
}
